package com.tao.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 派出所菜单树
 * @author h
 *
 */
@Entity
@Table(name = "pol_menu")
public class PolMenu implements java.io.Serializable{
	
	private static final long serialVersionUID = -1063650881305568635L;
	@Id 
    @Column(name="id")    
    @GeneratedValue(strategy=GenerationType.AUTO) //注解于属性中 
	int id;						//主键(自增)
	@Column(name="sub_id", nullable=true) //较详细定义
	String sub_id;				//双亲节点ID
	@Column(name="pol_id", nullable=true) //较详细定义
	String pol_id;				//子节点ID
	@Column(name="pol_name", nullable=true) //较详细定义
	String pol_name;			//子节点名称
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getSub_id() {
		return sub_id;
	}
	public void setSub_id(String sub_id) {
		this.sub_id = sub_id;
	}
	public String getPol_id() {
		return pol_id;
	}
	public void setPol_id(String pol_id) {
		this.pol_id = pol_id;
	}
	public String getPol_name() {
		return pol_name;
	}
	public void setPol_name(String pol_name) {
		this.pol_name = pol_name;
	}
	
	
}
